/*
 * Copyright (c) GoKeep by gokeep.org. 2022-2023. All rights reserved
 */
package org.gokeep.common.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "system.communication.heart")
public class HeartProperties {
    /**
     * 是否启用心跳
     */
    private boolean enable = true;

    /**
     * 心跳频率，单位秒，每间隔多少秒
     */
    private int rate = 16;

    /**
     * 多久没有收到心跳回执
     */
    private int timeout = 32;
}